package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.bizimpl.upmp.domain.IndustryInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
* @author LiuYuLiang.LL
*/
    public interface IndustryInfoService extends IService<IndustryInfo> {

    IPage<IndustryInfo> findByPage(QueryRequest request, IndustryInfo info);


    IPage<IndustryInfo> indusSelect2List(QueryRequest request, IndustryInfo q);

    List<IndustryInfo> findByIndustryType(String industryType, String status);

    @Transactional
    void create(IndustryInfo entity);

    @Transactional
    void update(IndustryInfo entity);

    @Transactional
    void cancel(String id);

    @Transactional
    void delete(String[] ids);

    IndustryInfo findOneByCode(String industryType, String status);

    IndustryInfo findAllindusByInTp(String industryType);

    Map<String, List<String>> getIndustryInfos(List listMerGrp);
}
